const dataSource = [
  {
    dataSourceId: "dsOrgTree",
    uniqueName: "获取组织树",
    requestURL: "DSV['baseURL'] + '/admin/department/get/tree'",
    requestURLType: "Variable",
    requestMethod: "post",
    description: "",
    headers: [
      {
        name: "Authorization",
        type: "Variable",
        value: "'Bearer ' + DSV['token']"
      }
    ],
    params: [
      {
        name: "dept_type",
        type: "String",
        value: "0"
      }
    ],
    data: [],
    configHandlerCode: "  return config",
    dataHandlerCode: "  return result.data;",
    errorHandlerCode: "  $message.error(error.message);"
  },
  {
    dataSourceId: "dsDeptTree",
    uniqueName: "获取部门树",
    requestURL: "DSV['baseURL'] + '/admin/department/get/tree'",
    requestURLType: "Variable",
    requestMethod: "post",
    description: "",
    headers: [
      {
        name: "Authorization",
        type: "Variable",
        value: "'Bearer ' + DSV['token']"
      }
    ],
    params: [],
    data: [],
    configHandlerCode: "  return config",
    dataHandlerCode: "  return result.data;",
    errorHandlerCode: "  $message.error(error.message);"
  },
  {
    dataSourceId: "dsJobTree",
    uniqueName: "获取岗位树",
    requestURL: "DSV['baseURL'] + '/admin/job/get/tree'",
    requestURLType: "Variable",
    requestMethod: "post",
    description: "",
    headers: [
      {
        name: "Authorization",
        type: "Variable",
        value: "'Bearer ' + DSV['token']"
      }
    ],
    params: [],
    data: [],
    configHandlerCode: "  return config",
    dataHandlerCode: "  return result.data;",
    errorHandlerCode: "  $message.error(error.message);"
  },
  {
    dataSourceId: "dsUserList",
    uniqueName: "获取用户列表",
    requestURL: "DSV['baseURL'] + '/admin/sysuser/get/list'",
    requestURLType: "Variable",
    requestMethod: "post",
    description: "",
    headers: [
      {
        name: "Authorization",
        type: "Variable",
        value: "'Bearer ' + DSV['token']"
      }
    ],
    params: [],
    data: [],
    configHandlerCode: "  return config",
    dataHandlerCode: "  return result.data;",
    errorHandlerCode: "  $message.error(error.message);"
  },
  {
    dataSourceId: "dsStaffList",
    uniqueName: "获取员工列表",
    requestURL: "DSV['baseURL'] + '/admin/user/get/list'",
    requestURLType: "Variable",
    requestMethod: "post",
    description: "",
    headers: [
      {
        name: "Authorization",
        type: "Variable",
        value: "'Bearer ' + DSV['token']"
      }
    ],
    params: [],
    data: [],
    configHandlerCode: "  return config",
    dataHandlerCode: "  return result.data;",
    errorHandlerCode: "  $message.error(error.message);"
  }
];

export default dataSource;
